package forms

type CreateIterationForm struct {
	IterationName  string `json:"iteration_name" form:"iteration_name" binding:"required"`
	IterationDesc  string `json:"iteration_desc" form:"iteration_desc"`
	IterationCover string `json:"iteration_cover" form:"iteration_cover" binding:"required"`
	StartTime      uint64 `json:"start_time" form:"start_time" binding:"required"`
	EndTime        uint64 `json:"end_time" form:"end_time" binding:"required"`
	ProjectId      uint64 `json:"project_id" form:"project_id" binding:"required"`
	LeaderId       uint64 `json:"leader_id" form:"leader_id" binding:"required"`
}

type UpdateIterationForm struct {
	IterationId    uint64 `json:"iteration_id" form:"iteration_id" binding:"required"`
	IterationName  string `json:"iteration_name" form:"iteration_name" binding:"required"`
	IterationDesc  string `json:"iteration_desc" form:"iteration_desc"`
	IterationCover string `json:"iteration_cover" form:"iteration_cover" binding:"required"`
	StartTime      uint64 `json:"start_time" form:"start_time" binding:"required"`
	EndTime        uint64 `json:"end_time" form:"end_time" binding:"required"`
	GroupId        uint64 `json:"group_id" form:"group_id" binding:"required"`
	UserId         uint64 `json:"user_id" form:"user_id" binding:"required"`
}

type DeleteIterationForm struct {
	IterationId uint64 `json:"iteration_id" form:"iteration_id" binding:"required"`
	UserId      uint64 `json:"user_id" form:"user_id" binding:"required"`
	GroupId     uint64 `json:"group_id" form:"group_id" binding:"required"`
}
